#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int m, n;
    float half, sum;
    scanf("%d %d", &m, &n);
    sum = 0; half = m;
    for (int i = 0; i < n; i++)
    {
        sum += half;
        half = half / 2;
        sum += half;
    }
    sum -= half;
    printf("%.2f %.2f", half, sum);
    return 0;
}